package org.hyl.javabase.断言;

public class demo2 {
	 private static int result; 
	    public void add(int n) {
	        result = result + n+1;
	    }
	    public void substract(int n) {
	        result = result - 1;  
	    }
	    public void multiply(int n) {
	    }       
	    public void divide(int n) {
	        result = result / n;
	    }
	    public void square(int n) {
	        result = n * n;
	    }
	    public void squareRoot(int n) {
	        for (; ;) ;         
	    }
	    public void clear() {   
	        result = 0;
	    }
	    public int getResult() {
	        return result;
	    }
}
